Repository navigation
fix: allow Bolt's custom MCP connector OAuth redirect URI - #631
Open
AlexLoyola wants to merge 1 commit into
Open
AlexLoyola wants to merge 1 commit into
AlexLoyola wants to merge 1 commit into
Conversation
Bolt.new's custom MCP connector registers with the redirect URI https://bolt.new/mcp/oauth/callback. The hosted server rejected it with invalid_redirect_uri, so the connector showed "Connection failed" before any sign-in window opened. Add that one exact URI to the default allowlist and cover it with registration, authorization, and lookalike rejection tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
AlexLoyola
marked this pull request as ready for review
December 4, 2026 22:20
Xrazik1
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow Bolt.new's custom MCP connector to complete MCP OAuth against the hosted server. Bolt registers its client with
https://bolt.new/mcp/oauth/callback, which the default allowlist doesn't include, so registration fails withinvalid_redirect_uriand Bolt shows Connection failed before any sign-in window opens.This adds that one exact URI to the default allowlist. The matcher and the existing entries are unchanged.
How the failure was found
https://mcp.browserless.io/mcpin Bolt as a custom MCP server (HTTP, MCP OAuth) and clicking Connect returns HTTP 500 from Bolt's own/api/mcp/auth/init, with the generic errorFailed to start OAuth flow.https://mcp.browserless.io/oauth/registerwithredirect_uris: ["https://bolt.new/mcp/oauth/callback"]returns400 invalid_redirect_uri. The same request with an allowlisted callback returns201./mcp/oauth/callback), andhttps://bolt.new/mcp/oauth/callbackresolves on bolt.new while unknown sibling paths return 404.Test plan
npm run lint, and Prettier on the changed filesreplay-driftintegration test ("installs on SDK drift..."), which checks SDK patch replay and doesn't touch the redirect allowlist.test:security: the picomatch install-hook check inscripts/ci/failed locally. It checks patch-file integrity, which this change doesn't touch. Left for CI to confirm.🤖 Generated with Claude Code
Summary by CodeRabbit
https://bolt.new/mcp/oauth/callbackas an approved OAuth redirect URI. Additional configured redirect patterns continue to be supported.